package com.dg11185.nearshop.net.response;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * 可激活检测的返回
 * 
 * @author LWL_Private
 * @date 2014-05-22
 */
public class ActivableResponse {
    public static final String SUCCESS = "SUCCESS";// 可激活
    public static final String FAILE = "FAILE";// 手机号不可用
    public static final String ILLEGAL_PAR = "ILLEGAL_PAR";// 参数异常
    public static final String CARD_NOTFOUND = "CARD_NOTFOUND";// 卡号不存在
    public static final String CARD_ACTIVED = "CARD_ACTIVED";// 卡已激活
    public static final String CARD_INVALID = "CARD_INVALID";// 卡锁定
    public static final String NET_EXCEPTION = "NET_EXCEPTION";// 发送短信失败
    public static final String EXCEPTION = "EXCEPTION";// WS调用失败
    public static final String ILLEGAL_SIGN = "ILLEGAL_SIGN";// 签名无效
    public static final String REQ_UN_TIMEOUT = "REQ_UN_TIMEOUT";// 5分钟内不允许重复发送验证码

    public String status;
    public String responseStr;

    public void parseJson(String response) throws JSONException {
        this.responseStr = response;
        JSONObject jsonObject = new JSONObject(response);
        status = jsonObject.getString("status");
    }

}
